Skip to content

fix: scope SDK documentation publishing by released package - #804

Merged
roncohen merged 2 commits into
mainfrom
fix/manual-sdk-docs-publishing
Nov 24, 2026
Merged

roncohen merged 2 commits into
mainfrom
fix/manual-sdk-docs-publishing

Conversation

@roncohen

@roncohen roncohen commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replace whole-tree SDK documentation deletion/copy with imports scoped to the stable packages and majors that were actually published.

Prerequisite landed: reflagcom/docs#32 merged the importer/checks without changing public pages. The broader v2 documentation cutover remains draft in reflagcom/docs#31.

  • Reconcile this PR with current main, preserving the existing Changesets next channel and package publication safeguards.
  • Select only documented packages present in Changesets' publishedPackages output. Exclude prereleases; require clean, matching source metadata and exact package tags.
  • Delegate public routing and generated-file ownership to the docs repository. No wholesale tree deletion or copying of unrelated workspace-HEAD docs.
  • Hold automatic documentation sync until the public v1 archive and SDK migration landing pages are present. The newly landed importer reports ready=false on docs main, so infrastructure can ship now without publishing v2 content. Direct release-import invocations also fail closed before that cutover.
  • Validate generated documentation before committing/pushing; do not swallow commit/push failures.
  • Add publication-boundary tests to Package CI and retain channel safeguards on every docs step.

No SDK runtime source, package manifest/version, Changeset, npm tag, GitBook setting or application deployment changes are included. Existing package publication behavior is unchanged.

Verification

  • Immutable Yarn install
  • Full workspace build (yarn build --concurrency 2), with a task-local checksum-verified JRE and existing OpenFeature providers built first
  • Canonical documentation build
  • Full workspace tests: 1,028 runtime tests + 48 Browser E2E cases
  • 17 release/manifest safeguards + 5 publisher boundary tests
  • Importer infrastructure: 21 tests, all 77 existing navigation entries, and readiness false
  • Existing draft cutover remains compatible: its original 19 tests and all 89 navigation entries / 33 generated pages pass with the extracted importer/checker; readiness true
  • Scoped formatting and zero-warning lint; full lint has only the inherited generated Next.js declaration warning
  • Normal commit hooks preserved the exact verified tree
  • Read-only Changesets preflight reports no pending package releases
  • Five real planner/importer dry runs cover the pre-cutover hold, scoped v2 writes, v1/current isolation, independent Management updates and prerelease exclusion
  • All 11 public workspace versions already exist in npm; no package version or Changeset changed
  • Final-head remote CI: both push and PR Build & Test runs pass; CodeQL, Oneleet and Reflag Review pass (no actionable findings)

Rollout boundary

Merge this after docs#32. This PR does not authorize a package release or the default-v2 docs cutover. Docs sync remains intentionally paused until docs#31 (or an equivalent reviewed content cutover) is published; stable package releases during that pause will not update public documentation automatically. Regenerate the final docs from the intended released sources as part of that later cutover.

@roncohen
roncohen marked this pull request as ready for review November 24, 2026 07:56

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium

no actionable findings

@roncohen
roncohen added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit a2389e8 Nov 24, 2026
9 checks passed
@roncohen
roncohen deleted the fix/manual-sdk-docs-publishing branch November 24, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant